/**
 * Copyright � 2012 GestureSoft. ALL RIGHTS RESERVED.
 * This file contains proprietary and GestureSoft CONFIDENTIAL Information.
 * Use, disclosure or reproduction is prohibited.
 * 
 * @fileName CustomProgressEvent.as
 * @creationDate Aug 8, 2012
 * @author 
 * @version 1.0
 */
package com.gesturesoft.imultimax.events
{
	
	import flash.events.Event;
	
	public class CustomProgressEvent extends Event
	{
		
		public static const LOAD_PROGRESS:String = "load_progress";
		public static const LOAD_COMPLETE:String = "load_Complete";
		
		[Bindable]private var _bytesLoaded:Number;
		[Bindable]private var _bytesTotal:Number;
		
		public function CustomProgressEvent(type:String, bytes_Loaded:Number=0, bytes_Total:Number=0, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			
			super(type, bubbles, cancelable);
			this._bytesLoaded = bytes_Loaded;
			this._bytesTotal = bytes_Total;
			
		}
		
		override public function clone():Event
		{
			
			return new CustomProgressEvent(type,bytesLoaded,bytesTotal,bubbles,cancelable);
			
		}
		
		public function get bytesTotal():Number
		{
			
			return this._bytesTotal;
			
		}
		
		public function get bytesLoaded():Number
		{
			
			return this._bytesLoaded;
			
		}
		
	}
	
}